//检查是否都为空值
function scoreQuery(){
	var memberName = document.getElementById("memberName").value;
	var memberNo   = document.getElementById("memberNo").value;
	var idNumber   = document.getElementById("idNumber").value;
	var mobile     = document.getElementById("mobile").value;
	if(memberName.length==0&&memberNo.length==0&&idNumber.length==0&&mobile.length==0){
		alert('必须填写一项查询条件');
		return false;
	}
}
//检查调整类型
function checkChangeType(){
	var changeType = document.getElementById("changeType").value;
	if(changeType==-1){
		alert('请选择调整类型！');
		document.getElementById("changeType").focus();
		return false;
	}
}
//检查调整方式
function checkChangeMethod(){
	var changeMethod = document.getElementById("changeMethod").value;
	if(changeMethod==-1){
		alert('请选择调整方式！');
		document.getElementById("changeMethod").focus();
		return false;
	}
}

//检查调整积分是否为空，格式是否正确
function checkChangeScore(){
	var changeScore = document.getElementById("changeScore").value;
	var changeMethod = document.getElementById("changeMethod").value;
	var totalScore = document.getElementById("totalScore").value;
	var filter = (/^(0|[1-9]\d*)$|^(0|[1-9]\d*)\.(\d+)$/);
	if(changeScore.length==0){
		alert('调整积分不能为空');
		document.getElementById("changeScore").focus();
		return false;
	}else{
		if(!filter.test(changeScore)){
			alert('请在调整积分中输入数字');
			document.getElementById("changeScore").focus();
			return false;
		}else if(changeScore-0<=0){
			alert('请在调整积分中输入大于0的数字');
			document.getElementById("changeScore").focus();
			return false;
		}
	}
	if(changeMethod==0&&changeScore-totalScore>0){
		alert('请在调整积分中输入小于总积分的数字');
		document.getElementById("changeScore").focus();
		return false;
	}
}

//检查调整原因是否为空，格式是否正确
function checkChangeReason(){
	var changeReason    = document.getElementById("changeReason").value;
	if(changeReason.length==0){
		alert('调整原因必须填写！');
		return false;
	}
}

//检查积分调整的输入
function checkScore(){
	if(checkChangeType()==false||checkChangeMethod()==false||checkChangeScore()==false||checkChangeReason()==false){
		return false;
	}
}